package com.esgpro.esg_api.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@Data
@EqualsAndHashCode
@AllArgsConstructor
@NoArgsConstructor
@TableName("tags")
@ApiModel("公司标签类")
public class Tags {
    @ApiModelProperty("索引")
    private Integer id;
    @ApiModelProperty("标签")
    private String name;
    @ApiModelProperty("公司索引")
    private int comp_id;
    @TableField(exist = false)
    @ApiModelProperty("公司")
    private Company company;

    public Tags(Integer id, String name, int comp_id) {
        this.id = id;
        this.name = name;
        this.comp_id = comp_id;
    }

    public Tags(Integer id, String name, Company company) {
        this.id = id;
        this.name = name;
        this.company = company;
    }
}
